﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO;
using Volo.Abp.Domain.Repositories;

namespace ThridGroup.ERP.WarehouseManagement
{
    public interface OutsourcingMaterialIService
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="outsourcingMaterial">实体</param>
        /// <returns>返回任务</returns>
        Task<int> AddOutsourcingMaterial(OutsourcingMaterialDTO outsourcingMaterial);
        /// <summary>
        /// 获取面试列表
        /// </summary>
        /// <returns>返回任务</returns>
        Task<List<OutsourcingMaterialDTO>> GetOutsourcingMaterial(int pageIndex = 1, int pageSize = 10);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="outsourcingMaterialId">主键</param>
        /// <returns>返回任务</returns>
        Task<int> DeleteOutsourcingMaterial(int outsourcingMaterialId);
        /// <summary>
        /// 返回单条数据
        /// </summary>
        /// <param name="outsourcingMaterialId">主键</param>
        /// <returns>返回任务</returns>
        Task<OutsourcingMaterialDTO> FanOutsourcingMaterial(int outsourcingMaterialId);
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="outsourcingMaterial">实体</param>
        /// <returns>返回任务</returns>
        Task<int> UpdateOutsourcingMaterial(OutsourcingMaterialDTO outsourcingMaterial);
    }
}
